#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <time.h>

#include "timerlib.h"


int main(int argc, char *argv[])
{
   int fd;

    fd = dev_open();

    timer_set(fd, 1000);
    timer_open(fd);

    sleep(5);

    timer_set(fd, 3000);
    sleep(8);

    timer_close(fd);
    
    close(fd);

    return 0;
}
